package com.idheima.doy03_danli;

public class Task {
    //1.私有化构造器
    private Task() {
    }
    //创建一个类对象
    private static Task task=new Task();
    //静态方法，返回对象
    public  static Task getInstance(){
        return task;
    }


}
